<?php
session_start();

$db_host = 'localhost';
$db_username = 'root';
$db_password = '123';

$con = mysql_connect($db_host, $db_username, $db_password);
if(!$con) {
	die("Could not connect to the database:<br />".mysql_error());
}
mysql_query("SET NAMES 'utf8'");// 防乱码
mysql_select_db("demo");
?>